package com.hsz.autotest.service.UserServiceImpl;

import com.hsz.autotest.entity.User;
import com.hsz.autotest.mapper.UserMapper;
import com.hsz.autotest.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper usermapper;

    public int addUser(User user){
        return usermapper.addUser(user);
    }

    public List<User> queryUser(Integer id,String phone){
        return usermapper.queryUser(id,phone);
    }

}
